# @Time    : 2021/9/28 15:17
# @Author  : Xuran Li
# @File    : 太极图.py
# @Software: PyCharm

import turtle

t = turtle.Turtle()
t.speed(1)
t.pensize(1)
radius = 150 # 太极大圆的半径为100 100= 35+15+15+35

t.color("black","black")
t.begin_fill()
t.circle(radius/2,180)
t.circle(radius,180)
t.left(180)
t.circle(-radius/2,180) # 改为顺时针画圆
t.end_fill()

t.left(90)
t.up()
t.fd(radius * 0.35)
t.down()
t.right(90)
t.fillcolor("white")
t.begin_fill()
t.circle(radius * 0.15)
t.end_fill()

t.up()
t.right(90)
t.forward(radius * 0.7)
t.down()
t.right(90)
t.color("black","black")
t.begin_fill()
t.circle(radius * 0.15)
t.end_fill()

t.up()
t.left(90)
t.forward(radius * (0.3 + 0.35))
t.down()
t.left(90)
t.color("black","white")
t.begin_fill()
t.circle(radius ,180)

t.up()
t.goto(-400,300)
t.color('#A066D3')
t.write("L旭冉 draw", font = ("arial" ,40 ,"normal"))


t.hideturtle()
turtle.exitonclick()


